// 员工的路由规则
import Layout from '@/layout'

export default {
  path: '/employees',
  component: Layout,
  children: [
    {
      path: '',
      name: 'employees',
      component: () => import('@/views/employees/index'),
      // meta中的title控制的是左侧链接的文本,icon控制的是图标
      meta: { title: '员工', icon: 'dashboard' }
    },
    {
      hidden: true,
      path: 'detail/:id',
      name: 'detail',
      component: () => import('@/views/employees/detail'),
      // meta中的title控制的是左侧链接的文本,icon控制的是图标
      meta: { title: '员工详情页', icon: 'dashboard' }
    },
    // 员工打印
    {
      hidden: true,
      path: 'print/:id',
      component: () => import('@/views/employees/print'),
      // meta中的title控制的是左侧链接的文本,icon控制的是图标
      meta: { title: '打印详情页', icon: 'dashboard' }
    }
  ]
}
